package csdj.service.impl;

import com.lww.springcloudapi.pojo.TabHallSetmeal;
import csdj.mapper.TabHallSetmealMapper;
import csdj.service.TabHallSetmealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TabHallSetmealServiceImpl implements TabHallSetmealService {

    @Autowired
    private TabHallSetmealMapper mapper;

    @Override
    public int addSetMeal(TabHallSetmeal tabHallSetmeal) {
        return mapper.insert(tabHallSetmeal);
    }

    @Override
    public int deleteSetMeal(Integer id) {
        return mapper.deleteById(id);
    }

    @Override
    public int updateSetMeal(TabHallSetmeal tabHallSetmeal) {
        return mapper.updateSetmeal(tabHallSetmeal);
    }

    @Override
    public List<TabHallSetmeal> selectSeteal() {
        return mapper.selectList(null);
    }
}
